List Containers with Rightsizing Recommendations
GET/rightsizing/containers
Retrieve a list of containers with their current resource requests, recommended resource requests, efficiency metrics, and potential cost savings. Supports filtering by cluster, namespace, labels, status, and more.
Request
Query Parameters
Default value: 1
Default value: 10
Default value: 30
Number of days to analyze for recommendations
List of cluster ARNs
Container names to filter by
Possible values: [running, failed, succeeded, pending, exited]
Names of the controllers
Kinds of the controllers
Search by container name
Filter by auto-rightsizing status
List of policy IDs to filter by
Export results as CSV
Responses
- 200
- 404
- 422
Successfully retrieved containers list
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
results
object[]
required
Default value: [object Object]
Default value: [object Object]
The name of the rightsizing policy assigned to this container, if any.
Default value: [object Object]
The ID of the rightsizing schedule assigned to this container, if any.
{
"total_rows": 0,
"results": [
{
"id": 0,
"name": "string",
"efficiency": 0,
"cpu_request": 0,
"recommended_cpu_request": 0,
"memory_request": 0,
"memory_request_unit": "string",
"recommended_memory_request": 0,
"recommended_memory_request_unit": "string",
"cpu_recommended_percentiles": {},
"memory_recommended_percentiles": {},
"cpu_default_recommended_percentile": "string",
"memory_default_recommended_percentile": "string",
"owner_kind": "string",
"owner_name": "string",
"cost": 0,
"savings": 0,
"policy_id": 0,
"policy_name": "string",
"auto_rightsize": false,
"last_seen": "string",
"namespace": "string",
"labels": {},
"status": "string",
"schedule_id": 0
}
]
}
Cluster not found
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}